Developing a Java Web Application in a Day: Step by step explanations with Eclipse Mars, Tomcat and MySQL (Java Web Programming Book 1)

Developing a Java Web Application in a Day: Step by step explanations with Eclipse Mars, Tomcat and MySQL (Java Web Programming Book 1)

Author:Manelli, Luciano [Manelli, Luciano]
Language: eng
Format: azw3
Publisher: Luciano Manelli
Published: 2016-01-02T16:00:00+00:00


PrintWriter out = response.getWriter();

java.util.Date today = new java.util.Date();

out.println("<html><body>" + today +

" POST parameter: " + name+ "</body></html>");

}

Figure 82. Eclipse, doGet and doPost in a Servlet.

If we click the first submit button “POST SUBMIT” – Figure 81 (which sends a POST message to the servlet), we get the following result on the Eclipse browser and on the browser.

Figure 83. Eclipse, POST result on the Eclipse browser and on the browser.

If we click the second submit button “GET SUBMIT” – Figure 81 (which sends a GET message to the servlet), we get the following result on the Eclipse browser and on the browser.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.